//
//  WmcTeamMember.swift
//  YPWatermarkCamera
//
//  Created by yupao_ios_macmini06 on 2022/9/13.
//

import Foundation

class WmcTeamMember {
    var name: String?
    var img: String?

    var showName: String? {
        if let name = name?.replacingOccurrences(of: "(我)", with: "") {
            if name.count >= 2 {
                let temp = String(name[name.index(name.startIndex, offsetBy: name.count - 2)...])
                return temp
            } else {
                return name
            }
        } else {
            return ""
        }
    }

    init(name: String?, img: String?) {
        self.name = name
        self.img = img
    }
}
